#pragma once

#include <iostream>
#include <vector>
#include <string>
#include "thread.hpp"
#include <queue>

//本质是：生产消费模型
template<class T>
class ThreadPool
{
public:
    ThreadPool()
    {

    }
    // 1. run()
    void run()
    {}
    // 2. pushTask()
    void pushTask()
    {}
    ~ThreadPool()
    {}
private:
    std::vector<Thread*> threads_;
    int num_;
    std::queue<T> task_queue_;
};